package com.rpc.framework;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

/**
 * Description:
 * User: 27010
 * DateTime: 2017/8/21 22:15
 */
public class RpcProxy {
	public static  <T> T create(Class<T> clazz, InvocationHandler handler) {
		return (T) Proxy.newProxyInstance(clazz.getClassLoader(), clazz.getInterfaces(), handler);
	}
}
